import axiosInstance from '../axiosInstance';

const orderInfo = {
    add(data) {
        return axiosInstance.post("/order/add", data)
    },
    findByUid(pageIndex) {
        return axiosInstance.get("/order/findByUid", {
            params: { pageIndex }
        })
    },
    pay(id) {
        return axiosInstance.get("/order/pay/" + id)
    },
    delete(id) {
        return axiosInstance.get("/order/delete/" + id)
    }
}

export default orderInfo;